﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Namer.Pages
{
    public class HomePage
    {
        private static readonly List<Control> PageControls = new List<Control>();
        public HomePage() => Interlize();

        public List<Control> GetControls(int x) {
            PageControls.Clear();
            Interlize();
            foreach(Control ctr in PageControls)  ctr.Location = new Point(x + ctr.Location.X, ctr.Location.Y);
            return PageControls;
        }
        private static void Interlize()
        {
            UIMarkLabel title = new UIMarkLabel()
            {
                Text = "主页",
                Location = new Point(10,10)
            };PageControls.Add(title);
        }
    }
}
